<%-- 
    Document   : SelectAssignmentForExtension
    Created on : 13/05/2008, 14:31:47
    Author     : Ting wang
--%>

<%@page contentType="text/html"%>
<%@page pageEncoding="UTF-8"%>
<%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%@taglib prefix="f" uri="http://java.sun.com/jsf/core"%>
<%@taglib prefix="h" uri="http://java.sun.com/jsf/html"%>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<c:set var="pageTitle" value="Extente an Assignment" scope="page"/>

<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <title>${pageTitle}</title>
    </head>
    <body>
        <h1>${pageTitle}</h1>
        <f:view>
            <!-- Show error messages -->
            <h:messages showSummary="true" showDetail="false"
                        style="color: red;
                        font-family: 'New Century Schoolbook', serif;
                        font-style: oblique"
                        id="errors"/>
            <h:form id="selectSubjectCodeForm">
                <table>
                    <tr>
                        <td colspan="3">
                            <b>Step 2. Select Assignment that needs to be extended:</b>
                        </td>
                    </tr>
                    <tr>
                        <td></td>
                        <td colspan="2">
                            <h:selectOneMenu id="subjectCode" value="#{ExtensionManagedBean.filterAssignment}">
                                <f:selectItems value="#{ExtensionManagedBean.assignmentItems}" />
                            </h:selectOneMenu>
                        </td>
                    </tr>
                    <tr>
                        <td>
                            <h:commandButton id="goBack" value="< Back" action="back"/>
                        </td>
                        <td>
                            <h:commandButton id="goNext" value="Next >" action="#{ExtensionManagedBean.retieveAssignment}"/>
                        </td>
                        <td>
                            <h:commandButton id="cancel" value="cancel" action="cancel"/>
                        </td>
                    </tr>
                </table>
                
                
            </h:form>
        </f:view>
    </body>
</html>